package com.tg.base.concurrent;

import java.util.concurrent.TimeUnit;

public class ThreadSleep {

    public static void invoke(TimeUnit unit, long interval) {
        try {
            unit.sleep(interval);
        } catch (InterruptedException ex) {
            ex.printStackTrace();
        }
    }
}
